import static junit.framework.Assert.assertTrue;
import junit.framework.TestCase;
import org.junit.Before;
import org.junit.Test;

/**
 * Tests input for the gui
 *
 * @author Arun Lee, Michael Terada, Marek Lopez
 */
public class testCityState extends TestCase {
        private ics314ui gui;
        //Test Values
        final String address = "2101 Nuuanu Ave";
        final String city = "Honolulu";
        final String state = "HI";
        
        final double expectedLat = 21.322586; //Values for 2101 Nuuanu Ave, Honolulu, HI
        final double expectedLng = -157.8496025; //Values for 2101 Nuuanu Ave, Honolulu, HI
        
    @Before
    public void setUp() throws Exception {
        gui = new ics314ui();
        gui.init();
    }
    
    @Test
    public void test() {
        CityState cs = new CityState(address, city, state);
        assertTrue(expectedLat == cs.getLat());
        assertTrue(expectedLng == cs.getLong());

    }
    
}